// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入创建好的仓库
import store from './store'
//全局引入reset.css
import './assets/css/reset.css'

//引入elementUI UI库
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//main文件
import particlesJS from 'particles.js'
Vue.use(particlesJS)

// 引入封装好的全局组件模块
import gCom from './comnon'
for (const i in gCom) {
  Vue.component(i,gCom[i])
}
//创建一个全局服务器变量
Vue.prototype.$imgUrl='http://localhost:3000'
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
  